package org.songwang.basic.query;

import lombok.Data;

@Data
public class BaseQuery<T> {
    private String keyword;
    //分页页数
    private Integer currentPage = 1;
    //每页条数
    private Integer pageSize = 5;
    //当前页码
    public Integer getPage(){
        return (this.currentPage-1)*this.pageSize;
    }
}
